package com.spring.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.context.ConfigurableApplicationContext;

@MapperScan("com.spring.boot.mapper")
@SpringBootApplication
//@SpringBootApplication(exclude = RedisAutoConfiguration.class)// 禁用redis
public class MySpringbootApplication {

	public static void main(String[] args) {

		SpringApplication.run(MySpringbootApplication.class, args);

//		ConfigurableApplicationContext run = SpringApplication.run(MySpringbootApplication.class, args);
//		String[] beanDefinitionNames = run.getBeanDefinitionNames();
//
//		for(String  bd :beanDefinitionNames) {
//			System.out.println(bd);
//		}



//		SpringApplication app = new SpringApplication(MySpringbootApplication.class);
//		app.setApplicationStartup(new BufferingApplicationStartup(1000));
//		app.run(args);

	}
	
}
